package com.bxw.forum.service;


import com.bxw.forum.model.Article;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {

    @Transactional
    void create(Article article);

    List<Article> selectAll();

    List<Article> selectAllByBoardId(Long boardId);

    Article selectDetailById(Long id);

    void modify(Long id,String title,String content);

    Article selectById(Long id);

    @Transactional
    void thumbsUpById(Long id,Long userId);

    @Transactional
    void deleteById(Long id);

    void addOneReplyCountById(Long id);

    List<Article> selectByUserId(Long userId);
}
